package site.jlopen.secret.uitl;

public enum SecretTableType {

	INT("int"), DOUBLE("double"), FLOAT("float"), STRING("str");

	private final String code;
	private String type;

	SecretTableType(String code) {
		this.code = code;
	}
	
	public static SecretTableType fromCode(String code) {
        for (SecretTableType type : values()) {
            if(type.getCode().equals(code))
            	return type;
        }
		return null;
    }

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCode() {
		return code;
	}

}
